package sample;

public enum ExcelTypeEnum {
    母表一(1,"母表一"),
    母表二(2,"母表二"),
    子表(3,"子表"),
    ;
    private Integer type;
    private String name;

    public Integer getType() {
        return type;
    }

    ExcelTypeEnum(Integer type,String name) {
        this.type = type;
        this.name = name;
    }
    private ExcelTypeEnum getById(Integer id){
        for(ExcelTypeEnum bizType : values()){
            if (bizType.getType().equals(id)) {
                //获取指定的枚举
                return bizType;
            }
        }
        return null;
    }

}
